-- GENERATED SPELL FOR [Thundris Windweaver] --


function spell0_3649(pUnit, Event) --@Mark of the Wild,n/a--
pUnit:FullCastSpellOnTarget(1126,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3649', 624, 1)
end

function spell1_3649(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3649', 500, 1)
end

function Sorts_3649(pUnit, Event)
local choix_sorts_3649 = math.random(0, 1)
if choix_sorts_3649 == 0 then
pUnit:RegisterEvent('spell0_3649', 1, 1)
end
if choix_sorts_3649 == 1 then
pUnit:RegisterEvent('spell1_3649', 1, 1)
end
end

function mob3649_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3649', math.random(1500, 3000), 1)
end

function mob3649_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3649_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3649_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3649, 1, 'mob3649_Action')
RegisterUnitEvent(3649, 2, 'mob3649_Leave')
RegisterUnitEvent(3649, 3, 'mob3649_Kill')
RegisterUnitEvent(3649, 4, 'mob3649_Die')
